package controller

import (
	"demo/user/service"
	"github.com/gin-gonic/gin"
)

func QueryUser(c *gin.Context) {
	userName := c.Query("user")
	user := userservice.QueryUserByName(userName)
	c.JSON(200, user)
}
